package com.system.demo.service.constant;

public class PaperConstant {
    //上传论文/软著/专利的摘要
    public static final String MINIO_ABSTRACT_PATH = "paper/abstract";

    //上传论文/软著/专利的证明材料
    public static final String MINIO_PAPER_EVIDENCE_PATH = "paper/evidence";

    //保存公告附件的地址
    public static final String MINIO_NOTICE_ATTACHMENT_PATH = "notice";

    public static final int SCI1 = 0;

    public static final int SCI2 = 1;

    public static final int SCI3 = 2;

    public static final int SCI4 = 3;

    public static final int EiChinese = 4;

    public static final int EiEnglish = 5;

    public static final int ChineseCore = 6;

    public static final int ChineseOrdinary = 7;

    public static final int T_Paper = 0;

    public static final int T_Patent = 1;

    public static final int T_Soft = 2;

    private PaperConstant() {
        throw new UnsupportedOperationException("This is a utility class and cannot be instantiated");
    }

    public static String getType(Integer type) {
        if (type == null) {return "";}
        switch (type) {
            case T_Paper:
                return "论文";
            case T_Patent:
                return "专利";
            case T_Soft:
                return "软件著作权";
            default:
                return "炸了？";
        }
    }

    public static String getFinalLevel(Integer finalLevel) {
        if (finalLevel == null) {return "";}
        switch (finalLevel) {
            case SCI1:
                return "SCI一区";
            case SCI2:
                return "SCI二区";
            case SCI3:
                return "SCI三区";
            case SCI4:
                return "SCI四区";
            case EiChinese:
                return "EI中文会议";
            case EiEnglish:
                return "EI英文会议";
            case ChineseCore:
                return "中文核心期刊";
            case ChineseOrdinary:
                return "中文普通期刊";
            default:
                return "其他";
        }
    }
}
